import Dao.impl.StudentImpl;
import Service.impl.StudentsImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("application.xml");
//        实例化
        StudentImpl studentsFactory = ctx.getBean("studentsFactory", StudentImpl.class);
        System.out.println(studentsFactory);
        //        ctx.registerShutdownHook();
//        StudentsImpl students = ctx.getBean("students", StudentsImpl.class);
//        students.save();
    }
}
